<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>2.	使用Math对象的random()方法编制一个产生0~100之间（含0,100）的随机整数的函数。</h1>
    <script>
        function getRandom(){
            return Math.floor(Math.random()*101);
        }
        for(var i=0; i<100;i++){
            if(i%10 ==0){
                document.write('<br>');
            }
            document.write(getRandom() + ' ');
        }
      
    </script>
</body>
</html>